Omnidirectional obstacle avoidance method for vehicles

ABSTRACT

A method for avoiding obstacles surrounding a mobile vehicle is disclosed. The method discloses that it is more accurate to merge images after a depth information is obtained to construct an environment information. The mobile vehicle set an omnidirectional depth sensing module using a lot of depth sensors for capturing a depth information of an environment surrounding the mobile vehicle and identifying the obstacles on the road upon the depth information. Also, scanning the smooth degree of the road for identifying static obstacles and moved obstacles, Thereby, a control circuit controls the mobile vehicle to lower speed or circumvent the danger.

FIELD OF THE INVENTION

The present invention relates generally to an obstacle avoidance method, and particular to an omnidirectional obstacle avoidance method for vehicles.

BACKGROUND OF THE INVENTION

Currently, it has been a pretty mature technology to install image capture devices on a vehicle, for example, a 3D automobile panorama image system using distance parameter to calibrate image correctness, which installs capture units, sensing units, and a processing unit on a vehicle. The capture units are used for capturing and transmitting omnidirectional aerial images surrounding an automobile. The sensing units are used for sensing the distances between the automobile and surrounding objects for generating and transmitting a plurality of distance signals. The processing unit includes a calibration module, a stitch module, and an operational module. The processing module receives the aerial images transmitted by the capture units and the distance signals transmitted by the sensing units. The calibration module calibrates the coordinate system of the aerial images according to the distance signals. Then the operational unit uses algorithms as well as insertion and patch techniques to give 3D automobile panorama images. The capture units are used for capturing and transmitting a plurality of omnidirectional aerial images surrounding the automobile. The sensing units are used for sensing the distance between the automobile and one or more object surrounding the automobile, and generating and transmitting a plurality of distance signals. Nonetheless, since ultrasonic sensors cannot get complete distance information unless the distance is closer and the sensing accuracy is low, they are not applicable to obstacle detection for moving automobiles.

To improve the sensing accuracy, according to the prior art, there is a camera lens set formed by multiple camera lenses. The camera lenses are disposed at different locations surrounding an automobile for taking and outputting multiple external images. The three-dimensional image processing module used for receiving images synthesize to give three-dimensional images using panorama projection images, captures partial three-dimensional panorama projection images according to the driver's field of vision corresponding to the driver's viewing angle, and outputs partial three-dimensional external images. Unfortunately, the images of the other angles during movement cannot be observed concurrently. Besides, the distance information of the obstacles surrounding a vehicle cannot be acquired real-timely.

Thereafter, although improvements are made in detecting the obstacles surrounding a vehicle for monitoring, there are still more objects might influence the movement of a vehicle in addition to other vehicles. For example, pedestrians, animals, and moving objects can be regarded as obstacles for a vehicle. They might cause emergent conditions for a moving vehicle. This influence is most serious in crowded streets of a city.

To solve the above problem, the present invention provides an omnidirectional obstacle avoidance method for vehicles. By acquiring omnidirectional images and omnidirectional depth information, the obstacle information surrounding a vehicle can be given. Then the vehicle is controlled to avoid the obstacles with higher risks and thus achieving the purpose of omnidirectional obstacle avoidance.

SUMMARY

An objective of the present invention is to provide an omnidirectional obstacle avoidance method for vehicles, which provides a fused omnidirectional image along with depth information for detecting omnidirectional obstacles and alarming for avoidance.

Another objective of the present invention is to provide an omnidirectional obstacle avoidance method for vehicles, which provides an alarm for omnidirectional obstacle avoidance and further controls a vehicle to avoid obstacles.

The present invention discloses an omnidirectional obstacle avoidance method for vehicles, which comprises steps of: capturing a plurality of peripheral images using a plurality of depth camera units of a vehicle and acquiring a plurality pieces of peripheral depth information according to a sensing algorithm; fusing the plurality of peripheral images to a plurality of omnidirectional environment images according to a fusion algorithm and dividing one side of the vehicle into a plurality of detection regions; operating the plurality pieces of peripheral depth information and the plurality of omnidirectional environment images according to the plurality of detection regions to give acceleration vector information and distance information of one or more obstacle; estimating a moving path of the one or more obstacle according to the acceleration vector information and the distance information of the one or more obstacle; and producing alarm information according to the moving path of the one or more obstacle. Thereby, the present invention can provide avoidance alarms for obstacles in the omnidirectional environment for a vehicle, so that the driver of the vehicle can prevent danger caused by obstacles in the environment.

According to an embodiment of the present invention, in the step of using a plurality of depth camera units of a vehicle and acquiring a plurality pieces of peripheral depth information according to a sensing algorithm, the plurality pieces of peripheral three-dimensional depth information are given according to the sensing result of the plurality of depth camera units and the sensing algorithm.

According to an embodiment of the present invention, in the step of fusing the plurality of peripheral images to a plurality of omnidirectional environment images, eliminate a plurality of overlap regions of the plurality of peripheral images according to a fusion algorithm and fuse to the plurality of omnidirectional environment images.

According to an embodiment of the present invention, the fusion algorithm further detects the edges of the plurality of peripheral images according to a plurality of detection ranges of the image capture module for giving and eliminating the plurality of overlap regions.

According to an embodiment of the present invention, in the step of estimating a moving path of the one or more obstacle according to the acceleration vector information and the distance information of the one or more obstacle, further estimate a moving speed and a moving distance of the one or more obstacle.

According to an embodiment of the present invention, in the step of estimating a moving path of the one or more obstacle according to the acceleration vector information and the distance information of the one or more obstacle, calculate to give a plurality of optical flow vectors using the image difference method, and estimate the acceleration vector information, the distance information, the moving speed, and the moving distance of the one or more obstacle according to the plurality of optical flow vectors.

According to an embodiment of the present invention, in the step of producing alarm information according to the moving path of the one or more obstacle, further control the vehicle to avoid the one or more obstacle.

According to an embodiment of the present invention, before the step of producing alarm information according to the moving path of the one or more obstacle, further classifying the one or more obstacle and labeling the one or more obstacle.

According to an embodiment of the present invention, the alarm information includes obstacle alarm information and avoidance information.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 shows a flowchart according to an embodiment of the present invention;

FIG. 2A shows a schematic diagram of the depth sensing module according to an embodiment of the present invention;

FIG. 2B shows a schematic diagram of integrating depth information according to an embodiment of the present invention;

FIG. 2C shows a schematic diagram of the overlap regions according to an embodiment of the present invention;

FIG. 2D shows a schematic diagram of image fusion according to an embodiment of the present invention;

FIG. 2E shows a schematic diagram of detecting obstacle according to an embodiment of the present invention; and

FIG. 2F shows a schematic diagram of detecting obstacle according to another embodiment of the present invention.

DETAILED DESCRIPTION

In order to make the structure and characteristics as well as the effectiveness of the present invention to be further understood and recognized, the detailed description of the present invention is provided as follows along with embodiments and accompanying figures.

Please refer to FIG. 1, which shows a flowchart according to an embodiment of the present invention. As shown in the figure, the omnidirectional obstacle avoidance method according to the present invention comprises steps of:

-   Step S10: Capturing peripheral images using depth camera units of a     vehicle and acquiring peripheral depth information according to a     sensing algorithm; -   Step S20: Fusing the peripheral images to omnidirectional     environment images according to a fusion algorithm and dividing one     side of the vehicle into detection regions; -   Step S30: Operating the peripheral depth information and the     omnidirectional environment images according to the detection     regions to give acceleration vector information and distance     information of the obstacle; -   Step S40: Estimating a moving path of the obstacle according to the     acceleration vector information and the distance information of the     obstacle; and -   Step S50: Producing alarm information according to the moving path     of the obstacle.

In the step S10, as shown in FIG. 2A, a vehicle 10 taking peripheral images using a plurality of depth camera units 22 in a depth sensing module 20. By using the operational processing unit 122 of the automobile control chip 12, a plurality pieces of peripheral depth information INFO are acquired, as shown in FIG. 2B. By using the image processing unit 124 of the automobile control chip 12, a plurality of peripheral images I1 are acquired, as shown in FIG. 2B. According to the present embodiment, the plurality of depth camera units 22 are located on the periphery of the vehicle 10, respectively, for capturing the plurality of peripheral images surrounding the vehicle 100 at a time. In addition, according to the present embodiment, the depth sensing module 20 includes a plurality of high-resolution depth camera units 22 for acquiring depth images within the radius of 15 meters. The plurality of depth camera units 22 acquires the plurality pieces of peripheral depth information Info.

The automobile control chip 12 is connected with the plurality of depth camera units 22 and forming the depth sensing module 20 for acquiring omnidirectional depth images. After the operations and processing of the operational processing unit 122 and the image processing unit 124, the plurality of peripheral depth information Info1 and the plurality of peripheral images I1 are given. The plurality of depth camera units 22 can further sense using infrared or ultrasonic methods. In addition, as shown in FIG. 2B, according to the present embodiment, the sensing result of the plurality of depth camera units 22 is operated by the operational processing unit 122 according to a sensing algorithm for producing the plurality pieces of peripheral depth information INFO, which is integrated by the operational processing unit 122 to form a plurality pieces of omnidirectional depth information DINFO.

The sensing algorithm executed by the operational processing unit 122 is described as follows:

Sobel Edge Detection

Each pixel in an image and its neighboring pixels are represented by a 3×3 matrix and expressed by P1, P2, P3, P4 . . . , P9 in Equation 1:

$\begin{matrix} {{\nabla f} = {{❘{Gx}❘} + {❘{Gy}❘}}} & {{Equation}1} \end{matrix}$ $\begin{matrix} {\begin{bmatrix} {P1} & {P2} & {P3} \\ {P4} & {P5} & {P6} \\ {P7} & {P8} & {P9} \end{bmatrix},} & {{Equation}2} \end{matrix}$ $\begin{matrix} {{Gx} = \begin{bmatrix} {P1} & {P2} & {P3} \\ {P4} & {P5} & {P6} \\ {P7} & {P8} & {P9} \end{bmatrix}} & {{Equation}3} \end{matrix}$ $\begin{matrix} {{Gy} = \begin{bmatrix} {P1} & {P2} & {P3} \\ {P4} & {P5} & {P6} \\ {P7} & {P8} & {P9} \end{bmatrix}} & {{Equation}4} \end{matrix}$ $\begin{matrix} {\begin{bmatrix} {f\left( {{x - 1},{y - 1}} \right)} & {f\left( {x,{y - 1}} \right)} & {f\left( {{x + 1},{y - 1}} \right)} \\ {f\left( {{x - 1},y} \right)} & {f\left( {x,y} \right)} & {f\left( {{x + 1},y} \right)} \\ {f\left( {{x - 1},{y + 1}} \right)} & {f\left( {x,{y + 1}} \right)} & {f\left( {{x + 1},{y + 1}} \right)} \end{bmatrix}} & {{Equation}5} \end{matrix}$ $\begin{matrix} {{E\left( {h,O} \right)} = {{D\left( {O,h,C} \right)} + {\lambda_{k}*{{Kc}(h)}}}} & {{Equation}6} \end{matrix}$ $\begin{matrix} {{D\left( {O,h,C} \right)} = {\frac{\sum_{\min}\left( {{❘{o_{d} - r_{d}}❘},d_{M}} \right)}{{\sum\left( {o_{s}\bigvee r_{m}} \right)} + \varepsilon} + {\lambda\left( {1 - \frac{2{\sum\left( {o_{s}\bigwedge r_{m}} \right)}}{{\sum\left( {o_{s}\bigwedge r_{m}} \right)} + {\sum\left( {o_{s}\bigvee r_{m}} \right)}}} \right)}}} & {{Equation}7} \end{matrix}$

Images are formed according to the angle α between two depth sensors corresponding to the world coordinates. The world coordinates are defined as Ow−XwYwZw, where Xc=Xw, Yc=−Yw, Zc=L−Zw, and A is the image A′. Then:

$\begin{matrix} {\frac{X_{w}}{X} = {{- \frac{Y_{w}}{y}} = \frac{L - Z_{w}}{f}}} & {{Equation}8} \end{matrix}$

Thereby, Equation 8 is rewritten according to the world coordinates. The previous plane equations are expressed in the world coordinates to deduce the sensing result for the peripheral environment, and giving:

$\begin{matrix} {{Xw} - {{Zw}\tan\alpha}} & {{Equation}9} \end{matrix}$ $\begin{matrix} {{Xw} = \frac{{Xl}\tan\alpha}{X + {f\tan\alpha}}} & {{Equation}10} \end{matrix}$ $\begin{matrix} {{Yw} = \frac{{- {Yl}}\tan\alpha}{X + {f\tan\alpha}}} & {{Equation}11} \end{matrix}$ $\begin{matrix} {{Zw} = \frac{ZL}{X + {f\tan\alpha}}} & {{Equation}12} \end{matrix}$ $\begin{matrix} {\begin{bmatrix} u \\ v \\ 1 \end{bmatrix} = {\begin{bmatrix} \frac{1}{Sx} & 0 & u_{0} \\ 0 & \frac{1}{Sy} & v_{0} \\ 0 & 0 & 1 \end{bmatrix} = \begin{bmatrix} x \\ y \\ 1 \end{bmatrix}}} & {{Equation}13} \end{matrix}$ $\begin{matrix} {\begin{bmatrix} x \\ y \\ 1 \end{bmatrix} = {\begin{bmatrix} {Sx} & 0 & {{- u_{0}}{Sx}} \\ 0 & {Sy} & {{- v_{0}}{Sy}} \\ 0 & 0 & 1 \end{bmatrix} = \begin{bmatrix} u \\ v \\ 1 \end{bmatrix}}} & {{Equation}14} \end{matrix}$ $\begin{matrix} {{Xw} = \frac{{{f_{x}\left( {u - u_{0}} \right)}l} - {\tan\alpha}}{{{f_{x}\left( {u - u_{0}} \right)}l} + {\tan\alpha}}} & {{Equation}15} \end{matrix}$ $\begin{matrix} {{Yw} = \frac{{{- {f_{y}\left( {v - v_{0}} \right)}}l} - {\tan\alpha}}{{{f_{x}\left( {u - u_{0}} \right)}l} + {\tan\alpha}}} & {{Equation}16} \end{matrix}$ $\begin{matrix} {{Zw} = \frac{{f_{x}\left( {u - u_{0}} \right)}l}{{{f_{x}\left( {u - u_{0}} \right)}l} + {\tan\alpha}}} & {{Equation}17} \end{matrix}$

In the step S20, as shown in FIG. 2D, fuse the plurality of peripheral images I1 to an omnidirectional environment image I2. According to the present embodiment, the fusion algorithm adopts characteristic functions f(x,y), f(x,y) shown in Equation 8. When x or y satisfies a certain fact, the characteristic function will be 1. f _(i)(x,y)∈{0,1},i=1,2, . . . ,m  Equation 18

The corresponding hidden status of an observation value is determined by the context (observation, status). By using characteristic functions, the environment characteristics (the combination of observation or status) can be selected. Namely, characteristics (observation combination) is used to replace observation for avoiding the limitation imposed by the assumption of independent observation of naive Bayes in the hidden Markov model (HMM) model.

According to the training data D={(x⁽¹⁾, y⁽¹⁾, (x⁽²⁾, y⁽²⁾), . . . , (x^((N)), y^((N)))} with the size T, the empirical expectation value is expressed in Equation 19 and the model expectation value is expressed in Equation 20. The learning of the maximum entropy model is equivalent to constraint optimization.

$\begin{matrix} {{{\overset{\sim}{E}}_{p}\left( f_{i} \right)} = {\frac{1}{n}{\sum\limits_{x,y}{{P\left( {x,y} \right)}{f_{i}\left( {x,y} \right)}}}}} & {{Equation}19} \end{matrix}$ $\begin{matrix} {{E_{p}\left( f_{i} \right)} = {\frac{1}{n}{\sum\limits_{x,y}{{P(x)}{p\left( y \middle| x \right)}{f_{i}\left( {x,y} \right)}}}}} & {{Equation}20} \end{matrix}$

Assuming the empirical expectation value is identical to the model expectation value, there are multiple sets C satisfying the constraint related to the conditional probability distribution of arbitrary characteristic function Fi, expressed as in Equation 21 below: C={P|E _(p)(f _(i))={tilde over (E)} _(p)(f _(i)),i=1,2, . . . ,m}  Equation 21

According to the maximum entropy theory, to deduce the only reasonable probability distribution from incomplete information (such as limited training data), the entropy should be maximized given the constraints imposed by the information are satisfied. Namely, the distribution of maximum entropy is the optimized distribution given the probability set of limited conditions. Thereby, the maximum entropy model becomes a constraint optimization problem for convex functions.

$\begin{matrix} {{\max\limits_{P \in C}{H(P)}} = {- {\sum\limits_{x,y}{{P(x)}{P\left( y \middle| x \right)}\log{P\left( y \middle| x \right)}}}}} & {{Equation}22} \end{matrix}$ $\begin{matrix} {{{s.t.{E_{p}\left( f_{i} \right)}} = {{\overset{\sim}{E}}_{p}\left( f_{i} \right)}},{i = 1},2,\ldots,m} & {{Equation}23} \end{matrix}$ $\begin{matrix} {{s.t.{\sum\limits_{y}{P\left( y \middle| x \right)}}} = 1} & {{Equation}24} \end{matrix}$

The Lagrange duality is generally adopted to transform an equation to an unconstrained one for solving for extreme values:

$\begin{matrix} {{L\left( {\omega,\alpha,\beta} \right)} = {{f(\omega)} + {\sum\limits_{i = 1}^{k}{\alpha_{i}{g_{i}(\omega)}}} + {\sum\limits_{j = 1}^{k}{\beta_{j}{h_{j}(\omega)}}}}} & {{Equation}25} \end{matrix}$ $\begin{matrix} {{\bigwedge\left( {p,\overset{\sim}{\lambda}} \right)} = {{H\left( y \middle| x \right)} + {\sum\limits_{i = 1}^{m}{\lambda_{i}\left( {{E_{p}\left( f_{i} \right)} - {{\overset{\sim}{E}}_{p}\left( f_{i} \right)}} \right)}} + {\lambda_{m + 1}\left( {{\sum\limits_{y \in Y}{P\left( y \middle| x \right)}} - 1} \right)}}} & {{Equation}26} \end{matrix}$

Calculate the partial derivative of the Langrage function with respect to p and make it equal to 0. Solve the equation. By omitting several steps, the following equations are derived:

$\begin{matrix} {{P_{\overset{\sim}{\lambda}}^{*}\left( y \middle| x \right)} = {\frac{1}{Z_{\overset{\sim}{\lambda}}(x)}{\exp\left( {\sum\limits_{i = 1}^{m}{\lambda_{i}{f_{i}\left( {x,y} \right)}}} \right)}}} & {{Equation}27} \end{matrix}$ $\begin{matrix} {{Z_{\overset{\sim}{\lambda}}(x)} = {\sum\limits_{y \in Y}{\exp\left( {\sum\limits_{\alpha}^{m}{\lambda_{i}{f_{i}\left( {x,y} \right)}}} \right)}}} & {{Equation}28} \end{matrix}$ Maximum Entropy Markov Model (MEMM)

$\begin{matrix} {{{P_{{yi} - 1}\left( {y_{i}❘x_{i}} \right)} = {\frac{1}{Z_{\overset{\sim}{\lambda}}\left( {x_{i},y_{i - 1}} \right)}{\exp\left( {\sum\limits_{\alpha}^{m}{\lambda_{\alpha}{f_{\alpha}\left( {x_{i},y_{i}} \right)}}} \right)}}},{i = 1},2,\ldots,T} & {{Equation}29} \end{matrix}$

Use P(y_(i)|y_(i−1), x_(i)) distribution to replace the two conditional probability distribution in the HMM. It means to calculate the probability of the current state according to the previous state and the current observation. Each of such distribution function p_(y) _(i−1) (y_(i)|x_(i)) is an index model complying with maximum entropy.

If the points {p₁, p₂, . . . , p_(n)} in discrete probability distribution and the maximum information entropy have been found and the probability distribution to be found is {p₁, p₂, . . . , p_(n)}, the maximum entropy equation is: f(p ₁ ,p ₂ , . . . p _(n))=−Σ_(j−1) ^(n) P _(j)·log₂ P _(j)  Equation 30

The sum of the probability distribution P_(i) at each point x_(i) must be 1:

$\begin{matrix} {{g\left( {p_{1},p_{2},\ldots,p_{n}} \right)} = {{\sum\limits_{j = 1}^{n}p_{j}} = 1}} & {{Equation}31} \end{matrix}$

By using the Lagrange multiplier, the angle of the maximum entropy can be deduced; {right arrow over (p)} covers all the {x₁, x₂, . . . , x_(n)} in the discrete probability distribution of {right arrow over (p)}:

$\begin{matrix} {{{\frac{\partial}{\partial\overset{\rightarrow}{p}}\left\{ {f + {\lambda\left( {g - 1} \right)}} \right\}}❘_{\overset{\rightarrow}{p} = {\overset{\rightarrow}{p}}^{*}}} = 0} & {{Equation}32} \end{matrix}$

A system of Ñ equations, where k=1, . . . n, is given, to make:

$\begin{matrix} {{{\frac{\partial}{\partial p_{k}}\left\{ {{- \left( {\sum\limits_{j = 1}^{n}{{p_{j} \cdot \log_{2}}p_{j}}} \right)} + {\lambda\left( {{\sum\limits_{j = 1}^{n}p_{j}} - 1} \right)}} \right\}}❘_{p_{k} = p_{k}^{*}}} = 0} & {{Equation}33} \end{matrix}$

By extending these Ñ equations, it gives:

$\begin{matrix} {{{- \left( {\frac{1}{\ln 2} + {\log_{2}p_{k}^{*}}} \right)} + \lambda} = 0} & {{Equation}34} \end{matrix}$

It means that all p*_(k) are equal, since they depend on λ only. By using the following constraint:

$\begin{matrix} {{\sum\limits_{j}p_{j}} = {{1 \times p_{k}^{*}} = \frac{1}{n}}} & {{Equation}35} \end{matrix}$ it gives

$\begin{matrix} {p_{k}^{*} = \frac{1}{n}} & {{Equation}36} \end{matrix}$

Thereby, the uniform distribution is the distribution for maximum entropy.

$\begin{matrix} {{{Maxmium}{entropy}{distribution}} = {H = {{❘\frac{{\sum\limits_{j = 1}^{n}P_{j}} - P_{k}}{\sum\limits_{j = 1}^{n}P_{j}}❘} \times 100}}} & {{Equation}37} \end{matrix}$

By using Equation 37, the maximum entropy distribution can be deduced. As shown in FIG. 2C, during the process of image fusion, the image overlap regions O are eliminated and an omnidirectional environment image I2 is produced, as shown in FIG. 2D. In other words, by using the maximum entropy distribution given by Equation 37, all peripheral images I1 are fused, the overlap regions O are eliminated, and the omnidirectional environment image I2 is produced.

Besides, as shown in FIG. 2A and FIG. 2B, in the step S20, divide the peripheral region of the vehicle 10 into a plurality of detection regions A according to the plurality of omnidirectional environment images I2 and the plurality pieces of omnidirectional depth information DINFO.

In the step S30, referring to FIG. 2A and FIG. 2B, by using the plurality of detection regions A and the Lucas-Kanade optical flow algorithm, the obstacle is estimated. First, by using the image difference method, apply the Taylor equation to the image constraint equation to give:

$\begin{matrix} {{I\left( {{x + {\delta x}},{y + {\delta y}},{z + {\delta z}},{t + {\delta t}}} \right)} = {{I\left( {x,y,z,t} \right)} + {\frac{\partial I}{\partial x}\delta x} + {\frac{\partial I}{\partial y}\delta y} + {\frac{\partial I}{\partial z}\delta z} + {\frac{\partial I}{\partial t}\delta t} + {H.O.T}}} & {{Equation}38} \end{matrix}$

The H.O.T. represent the higher order terms, which can be ignored when the movement is small enough. According to the equation, it can be obtained as follow:

$\begin{matrix} {{{\frac{\partial I}{\partial x}\delta x} + {\frac{\partial I}{\partial y}\delta y} + {\frac{\partial I}{\partial z}\delta z} + {\frac{\partial I}{\partial t}\delta t}} = {0{or}}} & {{Equation}39} \end{matrix}$ $\begin{matrix} {{{\frac{\partial I}{\partial x}\frac{\delta x}{\delta t}} + {\frac{\partial I}{\partial y}\frac{\delta y}{\delta t}} + {\frac{\partial I}{\partial z}\frac{\delta z}{\delta t}} + {\frac{\partial I}{\partial t}\frac{\delta t}{\delta t}}} = 0} & {{Equation}40} \end{matrix}$ giving:

$\begin{matrix} {{{\frac{\partial I}{\partial x}V_{X}} + {\frac{\partial I}{\partial y}V_{X}} + {\frac{\partial I}{\partial z}V_{X}} + \frac{\partial I}{\partial t}} = 0} & {{Equation}41} \end{matrix}$

V_(x), V_(y), and V_(z) are the optical flow vector components of I(x,y,z,t) in x, y, and z directions, respectively.

$\frac{\partial I}{\partial x},\frac{\partial I}{\partial y},{\frac{\partial I}{\partial z}{and}\frac{\partial I}{\partial t}}$ are the differences in the corresponding directions for a point (x,y,z,t) in an image. Thereby, Equation 42 can be converted to the following equation: I _(x) V _(X) +I _(y) V _(y) +I _(z) V _(Z) =−I _(t)  Equation 42

Equation 42 can be further rewritten as: ∇I ^(T) ·{right arrow over (V)}=−I _(t)  Equation 43

Since there are three unknowns (Vx,Vy,Vz) in Equation 41, the subsequent algorithm is used to deduce the unknowns.

First, assume the optical flow (V_(x),V_(y),V_(z)) is constant in a small window of m*m*m (m>1). Then, according to the primitives 1 to n, n=m³, the following ser of equations is given:

$\begin{matrix} {\begin{matrix} {{{I_{x1}V_{X}} + {I_{y1}V_{y}} + {I_{z1}V_{Z}}} = {- I_{T1}}} \\ {{{I_{x2}V_{X}} + {I_{y2}V_{y}} + {I_{z2}V_{Z}}} = {- I_{T2}}} \\  \vdots \\ {{{I_{xn}V_{X}} + {I_{yn}V_{y}} + {I_{zn}V_{Z}}} = {- I_{Tn}}} \end{matrix}} & {{Equation}44} \end{matrix}$

The above multiple equations all include three unknowns and forming an equation set. The equation set is an overdetermined equation set, and can be expressed as:

$\begin{matrix} {{\begin{bmatrix} I_{x1} & I_{y1} & I_{z1} \\ I_{x2} & I_{y1} & I_{z1} \\  \vdots & \vdots & \vdots \\ I_{xn} & I_{yn} & I_{zn} \end{bmatrix}\begin{bmatrix} V_{x} \\ V_{y} \\ V_{z} \end{bmatrix}} = \begin{bmatrix} {- I_{t1}} \\ {- I_{t2}} \\  \vdots \\ {- I_{tn}} \end{bmatrix}} & {{Equation}45} \end{matrix}$ which is denoted as A{right arrow over (v)}=−b  Equation 46

To solve this overdetermined problem, Equation 46 is deduced using the least squares method: A ^(T) A{right arrow over (v)}=A ^(T)(−b)  Equation 47 Or {right arrow over (v)}=(A ^(T) A)⁻¹ A ^(T)(−b)  Equation 48 giving

$\begin{matrix} {\begin{bmatrix} V_{x} \\ V_{y} \\ V_{z} \end{bmatrix} = {\begin{bmatrix} {\sum I_{xi}^{2}} & {\sum{I_{xi}I_{yi}}} & {\sum{I_{xi}I_{\approx i}}} \\ {\sum{I_{xi}I_{yi}}} & {\sum I_{yi}^{2}} & {\sum{I_{yi}I_{\approx i}}} \\ {\sum{I_{xi}I_{zi}}} & {\sum{I_{yi}I_{zi}}} & I_{zi}^{2} \end{bmatrix}^{- 1}\begin{bmatrix} {- {\sum{I_{xi}I_{ti}}}} \\ {- {\sum{I_{yi}I_{ti}}}} \\ {- {\sum{I_{zi}I_{ti}}}} \end{bmatrix}}} & {{Equation}49} \end{matrix}$

Substitute the result of Equation 49 into Equation 41 for estimating acceleration vector information and distance information of the one or more obstacle.

In the step S40, as shown in FIG. 2E, by using the acceleration vector information and the distance information given by the previous step S30, the moving direction of the one or more obstacle surrounding the vehicle 10 can be deduced and thus estimating a moving path P1 of the one or more obstacle OB. Besides, the vehicle 10 according to the present embodiment can further use the operational processing unit 122 in the automobile control chip 12 to further estimate a moving speed V1 and a moving distance D1 of a first obstacle OB1. The first obstacle OB1 according to the present embodiment will pass in front of the vehicle 10, and the vehicle 10 will pass across the moving path P1 of the first obstacle OB1.

In the step S50, the automobile control chip 12 in the vehicle 10 generates alarm information according the moving path of the one or more obstacle. According to the present embodiment, the automobile control chip 12 judges that a first alarm distance DA1 between the vehicle 10 and the first obstacle OB1 reaches within a first threshold value and transmits the alarm information for general obstacle. For example, the alarm information is displayed on a head-up display (HUD). When the first alarm distance DA1 enters a second threshold value, the automobile control chip 12 outputs a single alarm sound and controls the HUD to display the alarm information. When the first alarm distance DA1 enters a third threshold value, the automobile control chip 12 outputs intermittent alarm sound and controls the HUD (not shown in the figure) to display the alarm information. When the first alarm distance DA1 enters a fourth threshold value, the automobile control chip 12 outputs continuous alarm sound and controls the HUD (not shown in the figure) to display the alarm information. Since the fourth threshold value means that the obstacle OB is quite close to the vehicle 10, the automobile control chip 12 uses an urgent method to express the alarm information.

As shown in FIG. 2F, another embodiment of the present invention is illustrated. By using the omnidirectional obstacle avoidance method for vehicles according to the present invention, a second obstacle OB2 is detected and the moving path P2 of the second obstacle OB2 is estimated. The automobile control chip 12 judges that the vehicle will not pass across the moving path P2 of the second obstacle OB2. In addition, after judgement, the moving distance D2 and the moving speed V2 of the second obstacle OB2 do not change. Thereby, when the distance between the vehicle 10 and the second obstacle OB2 is a second alarm distance DA2 and the second alarm distance DA1 is within the first, or even the fourth threshold value, the automobile control chip 12 only controls the HUD to display the alarm information. The HUD described above is a mature technology for vehicles. Since the emphasis of the present invention is not on the HUD, it is used for illustrating display method. According to the present invention, the alarm information can be further displayed on the display on the dashboard of the vehicle 10, such as a car audio and video display.

Besides, according to the present invention, before the step S50, the automobile control chip 12 can classify and label obstacles. For example, classify the first obstacle OB1 as a dangerous obstacle and the second obstacle OB2 as a non-dangerous one. They are labeled in the omnidirectional environment image 12, displayed on the HUD, or displayed on the car audio and video display.

To sum up, the present invention provides an omnidirectional obstacle avoidance method for vehicles to achieve preventive avoidance. According to the distance, location, speed, acceleration of obstacles provided by the sensors, multiple types of information such as moving direction can be estimated. According to the information, driving risks can be evaluated and provided to drivers for reference. In addition, the obstacle information for vehicles encountering danger during the moving process is provided as reference data and acts as important data for prevention and judgement. Thereby, the vehicles can avoid high risk behaviors in advance, reduce risks effectively, and achieve the following effects:

1. The omnidirectional avoidance technology can be applied to various environments, such as reversing a car with a reversing radar. In addition to acquiring more detailed distance information and a broader identification range, the moving direction of the vehicles can be alarmed in advance for preventing accidents. Thereby, better alarm efficacy can be achieved. 2. Side blind spots reminder can provide alarms before the driver opens the door and gets off the car for reminding the driver to watch out for pedestrians. The present invention can be applied to turning and lane change. Compared to current methods, the present invention can provide more driving information beneficial to the driver's judgement. Currently, car accidents are mostly caused by driver's distraction. The present invention can prevent driving risks caused by distracted driving.

Accordingly, the foregoing description is only embodiments of the present invention, not used to limit the scope and range of the present invention. Those equivalent changes or modifications made according to the shape, structure, feature, or spirit described in the claims of the present invention are included in the appended claims of the present invention. 

What is claimed is:
 1. An omnidirectional obstacle avoidance method for vehicles, comprising steps of: capturing a plurality of peripheral images using a plurality of depth camera units of a vehicle and acquiring a plurality pieces of peripheral depth information according to a sensing algorithm, said plurality of peripheral images including one or more obstacle, and said one or more obstacle located on one side of said vehicle; fusing said plurality of peripheral images to a plurality of omnidirectional environment images according to a fusion algorithm and dividing said side of said vehicle into a plurality of detection regions; operating said plurality pieces of peripheral depth information and said plurality of omnidirectional environment images according to said plurality of detection regions to give acceleration vector information and distance information; estimating a moving path of said one or more obstacle according to said acceleration vector information and said distance information of said one or more obstacle; and producing alarm information according to said moving path of said one or more obstacle; wherein said step of fusing said plurality of peripheral images to a plurality of omnidirectional environment images according to a fusion algorithm and dividing said side of said vehicle into a plurality of detection regions, comprises eliminating a plurality of overlap regions of said plurality of peripheral images according said fusion algorithm and fuse to said omnidirectional environment images.
 2. The method of claim 1, wherein in said step of capturing a plurality of peripheral images using a plurality of depth camera units of a vehicle and acquiring a plurality pieces of peripheral depth information according to a sensing algorithm, said plurality pieces of peripheral depth information is deduced according to the sensing result of said plurality of depth camera units and said sensing algorithm.
 3. The method of claim 1, wherein said step of operating said plurality pieces of peripheral depth information and said plurality of omnidirectional environment images according to said plurality of detection regions, comprises using an image difference method to calculate according to said plurality pieces of peripheral depth information and said plurality of omnidirectional environment images for giving a plurality of optical flow vectors, and further giving said acceleration vector information and said distance information according to said plurality of optical flow vectors.
 4. The method of claim 1, wherein said step of estimating a moving path of said one or more obstacle according to said acceleration vector information and said distance information of said one or more obstacle, further comprises estimating a moving speed and a moving distance of said one or more obstacle.
 5. The method of claim 1, wherein said step of producing alarm information according to said moving path of said one or more obstacle, further comprises controlling said vehicle to avoid said one or more obstacle.
 6. The method of claim 1, wherein before said step of producing alarm information according to said moving path of said one or more obstacle, further comprises classifying and labelling said one or more obstacle.
 7. The method of claim 1, wherein said alarm information includes obstacle alarm information and avoidance information. 